import Home from '@/pages/Home';
import Login from '@/pages/Login';
import Register from '@/pages/Register';
import Search from '@/pages/Search';
import Detail from '@/pages/Detail';
import AddCartSuccess from '@/pages/AddCartSuccess';
import ShopCart from '@/pages/ShopCart';
import Trade from '@/pages/Trade';
import Pay from '@/pages/Pay';

import Test from '@/pages/Test';

export default [
  {
    path: '/',
    component: Home,
  },
  {
    path: '/test',
    component: Test,
  },
  {
    path: '/search',
    component: Search,
  },
  {
    path: '/pay',
    component: Pay,
  },
  {
    path: '/trade',
    component: Trade,
  },
  {
    path: '/addcart_success',
    component: AddCartSuccess,
  },
  {
    path: '/shopcart',
    component: ShopCart,
  },
  {
    path: '/detail/:id',
    component: Detail,
  },
  {
    path: '/login',
    component: Login,
    meta: {
      isHiddenFooter: true, //是否隐藏Fooert组件
    },
  },
  {
    path: '/register',
    component: Register,
    meta: {
      isHiddenFooter: true, //是否隐藏Fooert组件
    },
  },
];
